<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Page1.aspx.cs" Inherits="Page1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <h1>Slink</h1>
            <h3>Strongly typed URLs for ASP.NET</h3>

            <h4>Customer Pages</h4>
            <!-- The old way, using relative path -->
            <img src="~/Images/CustomerImage.jpg" alt="not strongly typed image" />

            <!-- The new Slink type safe way, using img HTML tag -->
            <img src='<%# Slinks.Images.JPG.CustomerImage.TildeUrl %>' alt="strongly typed url" runat="server" />
            <!-- The new Slink type safe way, using a web control -->
            <asp:Image ID="imgControl" runat="server"
                       ImageUrl='<%# Slinks.Images.JPG.CustomerImage.TildeUrl %>' />



            <h4>Employee Pages</h4>

            <hr />
            <p>Time Using Label Control: <asp:Label ID="Label1" runat="server" Text='<%# System.DateTime.Now.ToString() %>'></asp:Label></p>
            <p>Time using Response.Write() page tags <%= System.DateTime.Now.ToString() %></p>
        </div>
    </form>
</body>
</html>
